<html>
  <head>
    <title>
      <% if(view == 'man') {%>
        信息管理
      <%} else {%>
        发布中心
      <%}%>
    </title>
    <% include css %>
    <% include js %>
  </head>
  <body>
    <nav class="navbar navbar-default" role="navigation">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-01">
          <span class="sr-only">Toggle navigation</span>
        </button>
        <a class="navbar-brand" href="#">控制中心</a>
      </div>
      <div class="collapse navbar-collapse" id="navbar-collapse-01">
        <ul class="nav navbar-nav">
          <li><a href="?p=post">信息发布</a></li>
          <li><a href="?p=man">信息管理</a></li>
          <li><a href="?p=bbs">论坛管理</a></li>
        </ul>
        <ul class="nav navbar-nav navbar-right">
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><%- name %><span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu">
              <li><a href="#">用户中心</a></li>
              <li><a href="#">修改密码</a></li>
              <li class="divider"></li>
              <li><a href="/logout">登出</a></li>
            </ul>
          </li>
        </ul>
      </div><!-- /.navbar-collapse -->
    </nav><!-- /navbar -->
    <% if(locals.alert) {%>
    <div class="alert alert-<%- alert %> alert-dismissible" role="alert" style="margin-top:-30px">
      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      <strong><%- alert_title %></strong> <%- alert_content %>
    </div>
    <%}%>
    <div class="container">
      <% if(view == 'man') {%>
      <% include man.ejs %>
      <%} else if(view == 'bbs') {%>
      <% include man.ejs %>
      <%} else {%>
      <% include post %>
      <%}%>
    </div>
  </body>

</html>
